<!--代码逻辑和样式库-->
<script src="./create-dictionary-type.component.js"></script>
<style src="./create-dictionary-type.scss" scoped lang="scss"></style>

<template>
  <div>
    <el-dialog :visible.sync="showDialog" width="1300px" @close="closeDialog()">
      <span slot="title">
        <span class="aq-text-weight-bolder">字典管理</span>
        <i class="aq-margin-left-12 aq-margin-right-12 el-icon-arrow-right"></i>
        {{ title }}
      </span>
      <el-form ref="dataForm" :rules="editRules" :model="editForm">
        <el-row :gutter="20">
          <el-col :span="5">
            <el-form-item prop="typeName">
              <div><span class="aq-text-color-danger">*</span>字典名称<span class="aq-search-text">请填写字典名称</span></div>
              <el-input v-model="editForm.typeName" />
            </el-form-item>
          </el-col>
          <el-col v-if="userInfo.userId === '-1'" :span="5">
            <el-form-item prop="tableName">
              <div><span class="aq-text-color-danger">*</span>字典类型</div>
              <el-input v-model="editForm.tableName" />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item>
              <div>备注<span class="aq-search-text">可填写字典描述</span></div>
              <el-input v-model="editForm.remark" />
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <span slot="footer">
        <el-button @click="closeDialog()">取消</el-button>
        <el-button type="primary" :loading="loading" @click="save()">提交数据</el-button>
      </span>
    </el-dialog>
  </div>
</template>
